<%--
  Created by IntelliJ IDEA.
  User: lazar
  Date: 2020/9/7
  Time: 10:34 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生列表</title>
    <style type="text/css">
        table {
            border: 1px solid pink;
            margin: 0 auto;
            width: 500px;
        td{
            width: 150px;
            border: 1px solid pink;
            text-align: center;
        }
    </style>
<body>
<table>
    <tr>
        <td>学号</td>
        <td>姓名</td>
        <td>性别</td>
        <td>出生日期</td>
    </tr>
    <c:forEach items="${list}" var="item">
        <tr>
            <td>${item.sid}</td>
            <td>${item.name}</td>
            <td>${item.sex}</td>
            <td>${item.birth}</td>
        </tr>
    </c:forEach>
    <tr>
        <td colspan="2" style="text-align: left"><a href="add.jsp" style="background-color: darkcyan">新增学生</a> </td>
    </tr>
</table>
</body>
</html>
